<template>
	<view class="" style="background-color: #d70127;">
		<view class="content">
			<view class="recordList" v-for="(item,indec) in datalist" :key="indec">
				<view :class="item.status==2?'pass':item.status==1?'refund':'wait'">
					<view class="number" style="padding-right:120rpx;">
						<view class="itname"> 提现 </view>
						<view class="itdata"> -{{item.amount}}
						</view>
					</view>
					<view class="" style="margin-top: 20rpx;padding-right:120rpx;" v-if="item.judgeMsg">
						备注：{{item.judgeMsg}}
					</view>
					<view class="number marginTop">
						<view class="itname">
							{{item.createTime}}
						</view>
					</view>
				</view>
			</view>
			<!-- 	<view class="" style="display: flex;justify-content: center;" v-if="datalist.length==0">
				<image src="/static/image/empty.png" mode="widthFix" style="width: 500rpx;margin-top: 400rpx;"></image>
			</view> -->
		</view>
	</view>
</template>
<script>
	import {
		takeList
	} from '../request/api.js'
	export default {
		data() {
			return {
				pageNo: 1,
				pageSize: 10,
				datalist: [],
			}
		},
		onLoad() {
			this.getTakeList();
		},
		methods: {
			getTakeList() {
				takeList({
					pageNo: this.pageNo,
					takeMember: uni.getStorageSync('userInfo').id,
				}).then(res => {
					if (res.code == 200) {
						// console.log(res)
						this.datalist = res.result.records;
					}
				})
			},
		}
	}
</script>
<style lang="scss" scoped>
	.content {
		min-height: 100vh;
		background: url('/static/image/bg2.png') no-repeat center center;
		background-size: 100% 100%;
		// overflow: hidden;
		padding: 32rpx;

		.recordList {
			padding: 32rpx;
			border-bottom: 1rpx solid #D8D8D8;
			font-size: 28rpx;
			color: #FDE8CE;

			.number {
				display: flex;
				justify-content: space-between;

				.status {
					width: 108rpx;
					height: 40rpx;
					background: #D8D8D8;
					text-align: center;
					line-height: 40rpx;
					font-size: 28rpx;
					color: #9E9E9E;
					border-radius: 20rpx;
				}
			}

			.marginTop {
				margin-top: 20rpx;
			}
		}
	}

	.pass {
		background: url(/static/image/status_pass.png) no-repeat right;
		background-size: 100rpx 100rpx;
	}

	.refund {
		background: url(/static/image/status_refund.png) no-repeat right;
		background-size: 100rpx 100rpx;
	}

	.wait {
		background: url(/static/image/status_wait.png) no-repeat right;
		background-size: 96rpx 96rpx;
	}
</style>